<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>秒杀失败页面</title>
    <script type="text/javascript" th:src="@{/js/jquery.min.js}"></script>
</head>
<body>
<input type="hidden" id="flag" th:value="${orderId}"/>
    <p ></p>

<section>
    <script>
        let flag = $("#flag").val();
        if (flag == 0){
            $("p").text("等待中");
        }else {
            $("p").text("秒杀失败");
        }
    </script>
</section>
</body>
</html>